package com.xxc.exam.entity.pojo

import com.xxc.batis.po.BasePO
import com.xxc.common.anotation.POKO
import com.xxc.exam.entity.ManagerEntity
import java.io.Serializable
import java.math.BigInteger
import java.sql.Timestamp
import javax.persistence.*

@POKO
@Table(name = "category")
data class Category (var name:String?=null,
                     @Column(name = "owner_id")
                     var ownerId: BigInteger? = null,
                     var pid:BigInteger? = null
                  ) : BasePO(){
    companion object{
        fun DEFAULT(owner:BigInteger):Category
        {
            return Category(name = "/",ownerId = owner)
        }
    }
}